package com.zz.ai.func;

import java.util.function.Function;

public class OaService implements Function<OaService.Request, OaService.Response2> {

    @Override
    public Response2 apply(Request request) {
        System.out.printf("%s OaService apply",request.who);
        return new Response2(12);
    }

    public record Request(String who){

    }

    public record Response(int days){

    }


    public class Response2{
        private int days;

        public Response2(int days) {
            this.days = days;
        }

        public int getDays() {
            return days;
        }

        public void setDays(int days) {
            this.days = days;
        }
    }


}
